package com.hkts.reportform.utils;

import java.util.List;
import java.util.Map;

/**
 * @ClassNameHangDlerInventoryClassUtils
 * @Description
 * @Author yck
 * @Date2020-10-20 10:31
 * @Version V1.0
 **/
public class InventoryClassUtils {
    public static String getInventoryClassStr(String[] array) {
        StringBuffer buffer = new StringBuffer();
        for (int i = 0; i < array.length; i++) {
            if (i == 0) {
                buffer.append(array[i]);
            } else {
                buffer.append("\t"+array[i]);
            }
        }
        return buffer.toString();
    }
    public static String getInventoryClassStrByList(List<Map<String,Object>> list) {
        StringBuffer buffer = new StringBuffer();
        for (int i = 0; i < list.size(); i++) {
            if (i == 0) {
                buffer.append(list.get(i).get("cInvCCode"));
            } else {
                buffer.append("\t"+list.get(i).get("cInvCCode"));
            }
        }
        return buffer.toString();
    }
}
